/**
 * @filename:SysMenuService 2023-10-22 00:33:19
 * @project xxx系统  1.0
 * Copyright(c) 2021 fangdy Co. Ltd.
 * All right reserved.
 */
package org.fdy.bgadmin.service;

import org.fdy.bgadmin.entity.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import org.fdy.bgadmin.res.MenuRes;

import java.util.List;
import java.util.Set;

/**
 * @Description:(sys_menu服务层)
 * @version: 1.0
 * @author: fangdy
 *
 */
public interface SysMenuService extends IService<SysMenu> {

    List<MenuRes> buildTree(List<SysMenu> menuDtoList);

    List<SysMenu> findByUser(Long userId);

    List<SysMenu> findByRoleIdsAndTypeNot(Set<Long> roleIds);
}
